<?PHP
//$path_http = "http://dev.citu.fr/infinity2/";
$path_http = "http://localhost:8888/terraNumerica/infinity/trunk/";

//$path_local = "/var/www/vhosts/citu.fr/sd/dev/www/infinity2/";
$path_local = "/Users/alfred/Documents/dev/sd/TerraNumerica/infinity/trunk/";


// +++++ database connection data +++++

$hn =		"localhost"; 			// define hostname
$db =		"infinity_CITU"; 		// define database name
$dbuser =	"root";		 			// database 
$dbpass =	"root"; 				// password

// +++++ database connection functions +++++

function dbconnect() {
	global $hn, $db, $con, $dbpass, $dbuser;
	$con = @mysql_connect($hn, $dbuser, $dbpass);
	$db_sel = @mysql_select_db($db, $con);
	if (!$db_sel) {
		echo "could not connect to database $db ! please go back and try again.";
		exit;
	}
}

function dbclose() {
	global $con;
	mysql_close($con);
}

?>